package com.qwz.example.visitor;

import com.qwz.example.customer.EnterpriseCustomer;
import com.qwz.example.customer.PersonalCustomer;

/**
* @Description: 具体的访问者，实现对客户的偏好分析
* @Package com.qwz.example.visitor.PredilctionAnalyzeVisitor
* @author Qiuwuzhi
* @date 2019/12/27 17:17
* @version V1.0
*/
public class PredilctionAnalyzeVisitor implements Visitor {
    public void visitEnterpriseCustomer(EnterpriseCustomer customer) {
        System.out.println("现在对企业客户"+customer.getName()+"进行产品偏好分析");
    }

    public void visitPersonalCustomer(PersonalCustomer customer) {
        System.out.println("现在对个人客户"+customer.getName()+"进行产品偏好分析");
    }
}
